package com.zzyx.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Syscode entity. @author MyEclipse Persistence Tools
 */

public class Syscode implements java.io.Serializable {

	// Fields

	private String code;
	private String name;
	private String parent;
	private Set hospitals = new HashSet(0);
	private Set users = new HashSet(0);

	// Constructors

	/** default constructor */
	public Syscode() {
	}

	/** minimal constructor */
	public Syscode(String name) {
		this.name = name;
	}

	/** full constructor */
	public Syscode(String name, String parent, Set hospitals) {
		this.name = name;
		this.parent = parent;
		this.hospitals = hospitals;
	}

	// Property accessors

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParent() {
		return this.parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public Set getHospitals() {
		return this.hospitals;
	}

	public void setHospitals(Set hospitals) {
		this.hospitals = hospitals;
	}

	public Set getUsers() {
		return users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

}